# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Phillip Smith <fukawi2@NO-SPAM.gmail.com>
# https://github.com/fukawi2/aur-packages
# Contributor: Jason St. John <jstjohn .. purdue . edu>
# Contributor: antoniolucas <antoniolucasnobar at gmail dot com>

pkgname=perl-graphviz
pkgver=2.25
pkgrel=1
pkgdesc="GraphViz - Interface to AT&T's GraphViz. Deprecated. See GraphViz2"
arch=('any')
url="https://search.cpan.org/dist/GraphViz"
license=('GPL' 'PerlArtistic')
options=('!emptydirs')
depends=('graphviz' 'perl-file-which' 'perl-ipc-run' 'perl-libwww' 'perl-parse-recdescent'
         'perl-xml-twig' 'perl-xml-xpath')
checkdepends=('perl-test-pod')
source=("https://cpan.metacpan.org/authors/id/E/ET/ETJ/GraphViz-$pkgver.tar.gz")
sha512sums=('906899f6b45c9d537594e9d99e5c38848a3adeac0677890dd41544e390fcd2d9dcfa46ae1afc5d98bad6011c33b19b340955c36e188fa6953a0dcdda39530730')

build() {
  cd GraphViz-$pkgver
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd GraphViz-$pkgver
  make test
}

package() {
  cd GraphViz-$pkgver
  make install DESTDIR="$pkgdir"
}

# vim:set ts=2 sw=2 et:
